<template>
  <w-leaf :text="data.text" :key="data.id" :expanded="data.expanded" :expandedIcon="data.expandedIcon || '.f-i .f-i-file'" :collapsedIcon="data.collapsedIcon" :data="data">
    <x-leaf v-for="item in data.children" :key="item.id" :data="item"></x-leaf>
  </w-leaf>
</template>
<script>
  export default {
    name: 'x-leaf',
    props: ['data'],
  }
</script>

